import { gstyRequest } from '@/services'
//查询智能降雨方案
export async function getAirainList(params) {
  return gstyRequest.get({
    url: '/airain/list',
    showLoading: false,
    params
  })
}
//添加智能降雨方案
export async function addAirainList(data) {
  return gstyRequest.post({
    url: '/airain/add',
    showLoading: true,
    data
  })
}
//修改智能降雨方案
export async function updateAirainList(data) {
  return gstyRequest.put({
    url: '/airain/update',
    showLoading: true,
    data
  })
}
//刪除智能降雨方案
export async function deleteAirainList(id) {
  return gstyRequest.delete({
    url: '/airain/delete/' + id,
    showLoading: false
  })
}
//查询降雨信息
export async function getAirainData(params) {
  return gstyRequest.get({
    url: '/airain/rainfall/data',
    showLoading: false,
    params
  })
}
//查询降雨信息图片
export async function getAirainImage(params) {
  return gstyRequest.get({
    url: '/airain/image',
    showLoading: false,
    params
  })
}
//查看多方案计算
export async function calculateMore(data) {
  return gstyRequest.post({
    url: '/airain/aiCalculate',
    showLoading: false,
    data
  })
}
